package com.service;

import com.page.GenericPage;
import com.po.AdvertisementPO;
import com.po.AdvertisementBindPO;
import com.po.AdvertisementQueryPO;
import com.po.AdvertisementUpdatePo;
import com.result.Result;
import com.vo.AdvertisementVO;

import java.util.List;

public interface AdvertiesementService {

    //   save  查询命名为： query,修改是modify，删除时remove

    Result<AdvertisementVO> save(AdvertisementPO advertisementPO);

    Result<Boolean> removeById(Long id);

    Result<Boolean> removeAllByIds(List<Long> ids);

    Result<Boolean> modify(AdvertisementUpdatePo advertisementUpdatePo);

    Result<AdvertisementVO> queryById(Long id);

    Result<GenericPage<AdvertisementVO>> queryAll(AdvertisementQueryPO advertisementQueryPO);

    Result<AdvertisementVO> queryAdvertisementBySn(String sn);

    Result<Boolean> publishByAdvertisementId(Long advertisementId);





}
